package com.design.graduation.asdemo.view;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.design.graduation.asdemo.R;
import com.design.graduation.asdemo.model.SolicitingDetails;

import java.util.List;

/**
 * Created by lijinyuan on 16/2/27.
 */
public class ResultAdapter extends CommonAdapter<SolicitingDetails> {


    public ResultAdapter(Context context, List dataList, int itemLayoutId) {
        super(context, dataList, itemLayoutId);
    }


    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        ViewHolder holder = ViewHolder.get(mContext, convertView, parent, R.layout.item_details, position);
        holder.setImageResource(R.id.details_item_image,R.drawable.ic_launcher);
        holder.setText(R.id.details_item_content, mDataList.get(position).getContent());
        holder.setText(R.id.details_item_position,mDataList.get(position).getPosition());
        holder.setText(R.id.details_item_price,mDataList.get(position).getPrice());
        return holder.getConvertView();

    }

    @Override
    public void convert(ViewHolder holder, SolicitingDetails item) {

    }


}
